public class test1 {
    public static void main(String[] args) {
        student student = new student("小明", 18);


        teacher teacher = new teacher();
        teacher.setName("小红");
        teacher.setAge(20);

        register(student);
        register(teacher);


    }
    public static void register(person1 person) {
        person.show();
    }
}
